var config = {
    /**
     * 增删改查，api地址
     * @total 获取总条数api
     * @get   获取数据api
     * @edit  修改数据api
     *
     * model        类名
     * action       方法名 
     */
    set_url: {
        "total": { model: "goods", action: "get_goods_total" },
        "get": { model: "goods", action: "get_goods_all" },
        "edit": { model: "goods", action: "on_goods_edit" }
    },

    /**
     * 筛选配置
     * @type {Array}
     */
    select: [
        [{
            label: "仓库",
            type: "select",
            field: "warehouse",
            placeholder: "选则仓库",
            span: 6,
            option: [{
                value: 1,
                label: '全部仓库'
            }, {
                value: 2,
                label: "一号仓库"
            }, {
                value: 3,
                label: "二号仓库"
            }]
        }, {
            label: "商品类别",
            type: "select",
            field: "type",
            placeholder: "选择类别",
            span: 6,
            option: [{
                value: 1,
                label: '夏季'
            }, {
                value: 2,
                label: "冬季"
            }]
        }, {
            label: "商品",
            type: "input",
            field: "goods",
            placeholder: "",
            span: 6,
        }, {
            label: "",
            type: "checkbox",
            field: "client_status",
            option: [{
                value: 1,
                label: '只显示【建议采购量】大于0的商品',
            }],
            span: 6,
        }]
    ],

    /**
     * 表格操作按钮配置
     * @type {Array}
     */
    action: [{
        label: "计算公式",
        type: "primary",
        icon: "",
        callback: {
            type: "target",
            path: "/empty",
        }
    }, {
        label: "生成购货订单",
        type: "primary",
        icon: "",
        callback: {
            type: "target",
            path: "/empty",
        }
    }, {
        label: "导出",
        type: "default",
        icon: "",
        callback: {
            type: "target",
            path: "/empty",
        }
    }],

    /**
     * 表格配置
     * @type {Boolean}
     */
    selection: true,
    model: "input",
    table: [{
        label: "商品",
        type: "input",
        field: "goods_name",
        labelWidth: 180,
        sortable: false,
        amend: false,
    }, {
        label: "属性",
        type: "input",
        field: "goods_attr",
        labelWidth: 180,
        sortable: false,
        amend: false,
    }, {
        label: "单位",
        type: "input",
        field: "unit",
        labelWidth: 100,
        sortable: false,
        amend: false,
    }, {
        label: "销售在订量",
        type: "input",
        field: "number",
        labelWidth: 100,
        sortable: false,
        amend: false,
    }, {
        label: "库存余额",
        type: "input",
        field: "balance",
        labelWidth: 100,
        sortable: false,
        amend: false,
    }, {
        label: "采购在订量",
        type: "input",
        field: "purchase_number",
        labelWidth: 100,
        sortable: false,
        amend: false,
    }, {
        label: "最低库存",
        type: "input",
        field: "min_inventory",
        labelWidth: 100,
        sortable: false,
        amend: false,
    }, {
        label: "建议采购量",
        type: "input",
        field: "advice_purchase",
        labelWidth: 100,
        sortable: false,
        amend: false,
    }],

    /**
     * 分页配置
     * @type {Object}
     */
    page: {
        size: 10,
        current: 1,
        total: 100
    }

}
export default config;